<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Music-Player: Song Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Music-Player
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_song.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_song-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Song Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header for the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a> class.  
 <a href="class_song.html#details">More...</a></p>

<p><code>#include &lt;Song.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Song:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_song.png" usemap="#Song_map" alt=""/>
  <map id="Song_map" name="Song_map">
<area href="class_music_media.html" title="Represents MusicMedia." alt="MusicMedia" shape="rect" coords="0,56,81,80"/>
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,81,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9a77a12f893156eba12a57e2d66b49f5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_song.html#a9a77a12f893156eba12a57e2d66b49f5">Song</a> (std::string name, std::string interpret, <a class="el" href="class_album.html">Album</a> *album, <a class="el" href="struct_t_duration.html">TDuration</a> duration)</td></tr>
<tr class="memdesc:a9a77a12f893156eba12a57e2d66b49f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">The CTor of a <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>.  <a href="#a9a77a12f893156eba12a57e2d66b49f5"></a><br/></td></tr>
<tr class="separator:a9a77a12f893156eba12a57e2d66b49f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7ca3c784614636e654eb6e6c9f447a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_song.html#aa7ca3c784614636e654eb6e6c9f447a9">Accept</a> (<a class="el" href="class_i_visitor.html">IVisitor</a> *visitor)</td></tr>
<tr class="memdesc:aa7ca3c784614636e654eb6e6c9f447a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visits the Visitor visitor.  <a href="#aa7ca3c784614636e654eb6e6c9f447a9"></a><br/></td></tr>
<tr class="separator:aa7ca3c784614636e654eb6e6c9f447a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa95f27ad50478826bf411ca421cd0a0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_album.html">Album</a> const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_song.html#aa95f27ad50478826bf411ca421cd0a0e">getAlbum</a> () const </td></tr>
<tr class="memdesc:aa95f27ad50478826bf411ca421cd0a0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>.  <a href="#aa95f27ad50478826bf411ca421cd0a0e"></a><br/></td></tr>
<tr class="separator:aa95f27ad50478826bf411ca421cd0a0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d36382cc6999f2652852a702f644d2f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_t_duration.html">TDuration</a> const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_song.html#a7d36382cc6999f2652852a702f644d2f">getDuration</a> () const </td></tr>
<tr class="memdesc:a7d36382cc6999f2652852a702f644d2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>.  <a href="#a7d36382cc6999f2652852a702f644d2f"></a><br/></td></tr>
<tr class="separator:a7d36382cc6999f2652852a702f644d2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e5f0a8112a7784b4d6a7a8aec1f643d"><td class="memItemLeft" align="right" valign="top">std::string const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_song.html#a8e5f0a8112a7784b4d6a7a8aec1f643d">getInterpret</a> () const </td></tr>
<tr class="memdesc:a8e5f0a8112a7784b4d6a7a8aec1f643d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>.  <a href="#a8e5f0a8112a7784b4d6a7a8aec1f643d"></a><br/></td></tr>
<tr class="separator:a8e5f0a8112a7784b4d6a7a8aec1f643d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_music_media"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_music_media')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_music_media.html">MusicMedia</a></td></tr>
<tr class="memitem:aebdf80a0dddb746162e77f1bf8a92071 inherit pub_methods_class_music_media"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#aebdf80a0dddb746162e77f1bf8a92071">MusicMedia</a> (TMediaKind k, std::string name)</td></tr>
<tr class="memdesc:aebdf80a0dddb746162e77f1bf8a92071 inherit pub_methods_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">The CTor of a Musicmedia.  <a href="#aebdf80a0dddb746162e77f1bf8a92071"></a><br/></td></tr>
<tr class="separator:aebdf80a0dddb746162e77f1bf8a92071 inherit pub_methods_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0e3399ad9af0314a82deecc38be0f57 inherit pub_methods_class_music_media"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#ab0e3399ad9af0314a82deecc38be0f57">Add</a> (<a class="el" href="class_music_media.html">MusicMedia</a> *mm)</td></tr>
<tr class="memdesc:ab0e3399ad9af0314a82deecc38be0f57 inherit pub_methods_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to add a <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> to the composite structure.  <a href="#ab0e3399ad9af0314a82deecc38be0f57"></a><br/></td></tr>
<tr class="separator:ab0e3399ad9af0314a82deecc38be0f57 inherit pub_methods_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb14e1cad227f7a6cdd41b9a5b961b08 inherit pub_methods_class_music_media"><td class="memItemLeft" align="right" valign="top">TMediaKind&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#adb14e1cad227f7a6cdd41b9a5b961b08">getKind</a> () const </td></tr>
<tr class="memdesc:adb14e1cad227f7a6cdd41b9a5b961b08 inherit pub_methods_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the kind of the Media.  <a href="#adb14e1cad227f7a6cdd41b9a5b961b08"></a><br/></td></tr>
<tr class="separator:adb14e1cad227f7a6cdd41b9a5b961b08 inherit pub_methods_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c939438e2f8eb7d2185657f2f3e292b inherit pub_methods_class_music_media"><td class="memItemLeft" align="right" valign="top">std::string const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#a8c939438e2f8eb7d2185657f2f3e292b">getName</a> () const </td></tr>
<tr class="memdesc:a8c939438e2f8eb7d2185657f2f3e292b inherit pub_methods_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Name of the <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>.  <a href="#a8c939438e2f8eb7d2185657f2f3e292b"></a><br/></td></tr>
<tr class="separator:a8c939438e2f8eb7d2185657f2f3e292b inherit pub_methods_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#aa3e791419d84c4c346ef9499513b8e00">~Object</a> ()</td></tr>
<tr class="memdesc:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_object.html" title="Common Baseclass for all other classes.">Object</a> class.  <a href="#aa3e791419d84c4c346ef9499513b8e00"></a><br/></td></tr>
<tr class="separator:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#a86a84ed2d1207e5f8827165ac2941106">deleteObject</a> (<a class="el" href="class_object.html">Object</a> *obj)</td></tr>
<tr class="memdesc:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory used by obj.  <a href="#a86a84ed2d1207e5f8827165ac2941106"></a><br/></td></tr>
<tr class="separator:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_music_media"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_music_media')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_music_media.html">MusicMedia</a></td></tr>
<tr class="memitem:acbc8b4f5596fb4a126521e6899334c4a inherit pro_attribs_class_music_media"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbc8b4f5596fb4a126521e6899334c4a"></a>
TMediaKind&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#acbc8b4f5596fb4a126521e6899334c4a">mKind</a></td></tr>
<tr class="memdesc:acbc8b4f5596fb4a126521e6899334c4a inherit pro_attribs_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies the Kind of the <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>. <br/></td></tr>
<tr class="separator:acbc8b4f5596fb4a126521e6899334c4a inherit pro_attribs_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a138798fec75847a2f68ab4c1394f179b inherit pro_attribs_class_music_media"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a138798fec75847a2f68ab4c1394f179b"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_media.html#a138798fec75847a2f68ab4c1394f179b">mName</a></td></tr>
<tr class="memdesc:a138798fec75847a2f68ab4c1394f179b inherit pro_attribs_class_music_media"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies the name of the <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>. <br/></td></tr>
<tr class="separator:a138798fec75847a2f68ab4c1394f179b inherit pro_attribs_class_music_media"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Header for the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a> class. </p>
<p>Represents a song</p>
<p>The class song represents a song with all its neccessary information.</p>
<dl class="section author"><dt>Author</dt><dd>Thomas Pfeiffer </dd></dl>
<dl class="section date"><dt>Date</dt><dd>06.12.2012 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9a77a12f893156eba12a57e2d66b49f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Song::Song </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>interpret</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_album.html">Album</a> *&#160;</td>
          <td class="paramname"><em>album</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_t_duration.html">TDuration</a>&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The CTor of a <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<p>Calls its parent CTor to correctly set the Kind and initializes the songinfo. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The name of the song </td></tr>
    <tr><td class="paramname">interpret</td><td>The Interpret of the song </td></tr>
    <tr><td class="paramname">album</td><td>The <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> the song belongs to </td></tr>
    <tr><td class="paramname">duration</td><td>The duration of the song </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa7ca3c784614636e654eb6e6c9f447a9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Song::Accept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_visitor.html">IVisitor</a> *&#160;</td>
          <td class="paramname"><em>visitor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visits the Visitor visitor. </p>
<p>Calls visit of the concrete Visitor visitor </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">visitor</td><td>A Pointer to the concrete Visitor that should be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_music_media.html#a553df3f844aefbe688c007ffca5e0777">MusicMedia</a>.</p>

</div>
</div>
<a class="anchor" id="aa95f27ad50478826bf411ca421cd0a0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_album.html">Album</a> const * Song::getAlbum </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<p>Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a> </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the song. </dd></dl>

</div>
</div>
<a class="anchor" id="a7d36382cc6999f2652852a702f644d2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_t_duration.html">TDuration</a> const * Song::getDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<p>Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a> </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the song. </dd></dl>

</div>
</div>
<a class="anchor" id="a8e5f0a8112a7784b4d6a7a8aec1f643d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string const * Song::getInterpret </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<p>Returns the <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the <a class="el" href="class_song.html" title="Header for the Song class.">Song</a> </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> of the song. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_song.html">Song</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
